package cn.tedu.mvc;
//充当了mvc里的m model用来封装数据
//会把地址栏里用户发来的数 一个一个的解析 并且把每个属性设置好
public class Car {

    private  Integer id;
    private String name;
    private  Double price;
    private  String color;
//get set tostring
    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", color='" + color + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
